import java.util.Calendar;
import java.util.GregorianCalendar;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;

/**
 * 
 */

/**
 * @author Administrator
 *
 */
public class Test {
public static void main(String[] args) {
	Calendar cal=GregorianCalendar.getInstance();
	DateTime time=DateTimeFormat.forPattern("dd-MM-yyyy").parseDateTime("12-04-2012");
	cal.setTime(time.toDate());
	int month=cal.get(Calendar.MONTH);
	while(month == cal.get(Calendar.MONTH)){
		System.out.println(cal.get(Calendar.DAY_OF_MONTH));
		System.out.println(cal.getTimeInMillis());
		cal.add(Calendar.DAY_OF_MONTH, 1);
	}
}
}
